{% extends 'base.html' %}

{% block scripts %}
  {{ block.super }}
  <script type="text/javascript">
    addCityUrl="{% url core.views.profile.add_city %}";
    removeCityUrl="{% url core.views.profile.remove_city %}";
  </script>
  <script src="{{ STATIC_URL }}js/profile.js" type="text/javascript"></script>
{% endblock %}

{% block styles %}
  {{ block.super }}
  <link rel="stylesheet" type="text/css" title="style" href="{{ STATIC_URL }}css/profile.css" />
{% endblock %}

{% block content %}
  <div id="profile_content" class="edit">
    <h2 id="profile_edit_title">Редактирование профиля</h2>
    <form id="city_form" method="post">
      <ul id="city_list">
      {% for city in cities %}
        <li cityid="{{ city.name }}">{{ city.name }}</li>
      {% endfor %}
      </ul>
      <label>Город: </label>{{ city_form.city }}
      <input type="button" value="+" id="city_form_button"/>
    </form>

    <form id="user_form" action="" method="post" enctype="multipart/form-data">
	  <p id="data_list"><label>Логин: </label>{{ form.name }}</p>
      <p id="data_list"><label>E-mail: </label>{{ form.email }}</p>
      <p id="data_list">{{ form.avatar }}</p>
      <input id="save_data" class="btn gray" type="submit" value="Сохранить" />
    </form>
  </div>
{% endblock %}
